package com.zhenwei.zscm.model.vo.productPart;

import com.zhenwei.zscm.common.annotations.Insert;
import com.zhenwei.zscm.common.annotations.Update;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotEmpty;
import lombok.Data;

import java.util.List;

@Data
public class CreateProductPartVO {
    @NotEmpty(message = "产品不能为空", groups = {Insert.class, Update.class})
    private String productCode;
    @NotEmpty(message = "产品不能为空", groups = {Insert.class, Update.class})
    private String productName;
    @NotEmpty(message = "产品备件列表不能为空", groups = {Insert.class, Update.class})
    @Valid
    private List<ProductPartVO> productPartList;
}
